package com.pikaqiu.blog.service;

import com.github.pagehelper.PageInfo;
import com.pikaqiu.blog.entity.Article;
import com.pikaqiu.blog.entity.ArticleComment;
import com.pikaqiu.blog.entity.ArticleType;

import java.util.List;

/**
 * @author 吕梁山
 * @date 2019/1/7
 */
public interface ArticleService {

    PageInfo<Article> getArticlePage(int pageNum, int pageSize);

    Article getArticle(int id);

    PageInfo<ArticleComment> getArticleCommentPage(int articleId, int pageNumber, int pageSize);

    List<ArticleType> getArticleTypeList();

    void addArticleComment(ArticleComment articleComment);
}
